package com.ftg.learn.rbac.service;

import com.ftg.learn.rbac.entity.Permission;
import com.baomidou.mybatisplus.extension.service.IService;
import org.json.JSONObject;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author kangjx
 * @since 2022-03-23
 */
public interface IPermissionService extends IService<Permission> {

    boolean updateForName(int id, String title);

    JSONObject showPermissionTree(int rid);

    Boolean saveForPermission(int rid, List<Integer> pids);
}
